<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'updateteache.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<style type="text/css">
		table tr td{
			border: 1px solid #CCCCCC;
			width: 200px;
		}
	</style>

  </head>
  
  <body>
  	<form action="./teacher/teacher!updateteacher.action" method="post">
	   	<table style="border: 1px solid blue;">
	  		<tr>
				<td>姓名</td>
				<td>部门</td>
				<td>类型</td>
				<td></td>
	  		</tr>
			<tr>
				<td>
					<input type="hidden"value="${teacher.id}" name="teacher.id" />
					<input type="text" value="${teacher.name}"  name="teacher.name"/>
				</td>
				<td>
					<s:select theme="simple" name="teacher.dept.id" list="#request.dept" listKey="id" listValue="name"/>
				</td>
				<td>
					<input type="radio" value="0" name="teacher.isPro" checked="checked">专业老师
					<input type="radio" value="1" name="teacher.isPro">班主任
				</td>
				<td>
					<input type="submit" value="确定修改"/>
				</td>
			</tr>
	  	</table>
  	</form>
  </body>
</html>
